<?$this->load->view('admin/header.tpl');?>
	<div id="wrap" class="lw clearfix ab">
		<?if($success):?><div class="success"><?=$success?></div><?endif?>
		<div class="form-error"><?=$error?></div>
		<a class="add-action" href="/admin/production/action">添加商品</a>
		<table class="list">
			<tr>
				<th>编号</th>
				<th>产品名称</th>
				<th>品牌</th>
				<th>添加时间</th>
				<th>产品管理</th>
			</tr>
			<?if($production):?>
				<?foreach($production as $h):?>
				<tr>
					<td><a href="/production/show/<?=$h->id?>">PR<?=$h->id?></a></td>
					<td><?=$h->name?></td>
					<td><?=$h->brand?></td>
					<td><?=$h->time?></td>
					<td>[<a href="/admin/production/action/<?=$h->id?>">产品管理</a>] [<a href="/admin/reply/index/<?=$h->id?>">咨询回复管理</a>]</td>
				</tr>
				<?endforeach?>
			<?else:?>
				<p>还没有添加商品，请先 <a href="/admin/production/action">添加</a></p>
			<?endif?>
		</table>
	
	</div>
<?$this->load->view('footer.tpl');?>